package com.kqb.api.auth.feign;

import com.kqb.api.auth.bo.UserInfoInTokenBO;
import com.kqb.common.core.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 杉果树皮
 * @date 2025/4/14 13:57
 * @description:
 */
@FeignClient("sc-auth")
public interface TokenFeignClient {
    /**
     * 校验token并返回储存在用户的信息
     *
     * @param accessToken
     * @return
     */
    @GetMapping("/feign/token/checkToken")
    AjaxResult checkToken(@RequestParam("accessToken") String accessToken);
}
